home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6063 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  897 b 

  1. Path: ix.netcom.com!netnews
  2. From: miker3@ix.netcom.com (Mike Rubenstein)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Why use a reference on a ptr foo(int &*parm) as a formal parm ?
  5. Date: Sun, 11 Feb 1996 14:15:35 GMT
  6. Organization: Netcom
  7. Message-ID: <311df8d2.156885178@nntp.ix.netcom.com>
  8. References: <311DC7A8.2A1C@worldcom.ch>
  9. NNTP-Posting-Host: ix-dc12-11.ix.netcom.com
  10. X-NETCOM-Date: Sun Feb 11  6:15:05 AM PST 1996
  11. X-Newsreader: Forte Agent .99d/32.182
  12.  
  13. Jean-Pierre Schnyder <jschnyde@worldcom.ch> wrote:
  14.  
  15. > Hi,
  16. > I'm not sure to understand the rationale for this technique. Any idea ?
  17.  
  18. The most common reason is that one doesn't want the program to
  19. compile, so one codes a syntax error.
  20.  
  21. Perhaps you mean
  22.  
  23.     Why use a reference on a ptr foo(int *&parm) as a formal parm?
  24.  
  25. This makes parm a reference to a pointer to int and allows one to
  26. change the value in the caller.
  27.  
  28.  
  29. Michael M Rubenstein
  30.